package ${config.implPackage};

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.starlucky.core.builder.PageBuilder;
import com.starlucky.core.common.Page;
import com.starlucky.core.common.PageData;
import com.starlucky.core.ormbase.BaseServiceImpl;
import ${config.modulePackage}.${info.className}${config.moduleSuffix};
import ${config.mapperPackage}.${info.className}${config.mapperSuffix};
import ${config.servicePackage}.${info.className}${config.serviceSuffix};
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
* 描述：${info.tableComment}业务逻辑
* @author ${config.author}
* @date ${.now}
*/
@Service
public class ${info.className}${config.serviceSuffix}${config.implSuffix} extends BaseServiceImpl<${info.className}${config.mapperSuffix}, ${info.className}${config.moduleSuffix}> implements ${info.className}${config.serviceSuffix} {
    private static final Logger logger = LoggerFactory.getLogger(${info.className}${config.serviceSuffix}${config.implSuffix}.class);

    @Override
    public PageData<${info.className}${config.moduleSuffix}> page(Page page, ${info.className}${config.moduleSuffix} ${info.className?uncap_first}) {
        IPage ipage = PageBuilder.getInstance().convert(page).build();
        IPage<${info.className}${config.moduleSuffix}> pages = this.baseMapper.page(ipage, ${info.className?uncap_first});
        return PageData.fromPage(pages);
    }
}
